{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=1429
  Verdict: Accepted
}
uses SysUtils;
 
var
	x,n,m,i,j,l,r,k:longint;
	a:array[0..10010] of int64;
 
begin
reset(input,'input.txt');
rewrite(output,'output.txt');
fillchar(a,sizeof(a),0);
read(x,n,m);
for i:=1 to n do begin
	read(l,r);
	for j:=l to r do 
		inc(a[j]);
end;
for i:=1 to m do begin
	read(k);
	write(a[k],' ');
end;
end.